package hjw.com.entity;

import hjw.com.entity.Clz;

public class User {
    private String uid;  //用户id
    private Clz clz;  //班级
    private String uname;  //用户名
    private String phone;  //手机号
    private String pwd;  //密码
    private String pic; //头像
    private String role; //身份

    public User() {
        clz = new Clz();
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Clz getClz() {
        return clz;
    }

    public void setClz(Clz clz) {
        this.clz = clz;
    }
    public String getClzno() {
        return clz.getClzno();
    }

    public void setClzno(String clzno) {
        this.clz.setClzno(clzno);
    }

    public String getClzname() {
        return clz.getClzname();
    }

    public void setClzname(String clzname) {
        this.clz.setClzname(clzname);
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", clz=" + clz +
                ", uname='" + uname + '\'' +
                ", phone='" + phone + '\'' +
                ", pwd='" + pwd + '\'' +
                ", pic='" + pic + '\'' +
                ", role='" + role + '\'' +
                '}';
    }
}
